#pragma once

#include <QWidget>
#include "ui_client_login.h"
#include <QLibrary>
#include <QtNetwork>
#include "socket.h"
#include <QMessagebox>

class client_login : public QWidget
{
	Q_OBJECT

public:
	client_login(socket *father,QWidget *parent = Q_NULLPTR);
	~client_login();

private:
	Ui::client_login ui;
	void closeEvent();
	socket* client;
	bool isconnected;
public slots:
	void login();
	void iscon();
	void discon();
signals:
	void startup(QString,QString);
};
